package com.tao.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;

@Component
@Slf4j

public class ScheduledTasks {

//    @Scheduled(fixedRate = 3000)
    @Scheduled(fixedRate = 3000)
    public void taskService(){
//        System.out.println("定时任务执行："+System.currentTimeMillis());
    }
}
